            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-md-10">
                    <h2>分类添加</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="index">分类管理</a>
                        </li>
                        <li class="active">
                            <strong>添加分类</strong>
                        </li>
                    </ol>
                </div>
            </div>
            <div class="wrapper wrapper-content">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>分类内容</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form action="{:U('/Admin/Catalog/do_add')}" method="POST" class="form-horizontal">
                            <div class="form-group"><label class="col-sm-2 control-label">分类名称</label>

                                <div class="col-sm-10"><input type="text" name="name" class="form-control"></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">分类等级</label>

                                <div class="col-sm-4">
                                    <select class="form-control m-b" name="parent_id">
                                        <option value="0">一级分类</option>
                                        <volist name="level1" id="l1">
                                            <option value="{$l1.id}">{$l1.name}</option>
                                            <?php $level2=M('product_catalog')->where("parent_id = ".$l1['id'])->select()?>
                                            <volist name="level2" id="l2">
                                                <option value="{$l2.id}">╰——{$l2.name}</option>
                                            </volist>
                                        </volist>
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-white" type="submit">Cancel</button>
                                    <button class="btn btn-primary" type="submit">Save changes</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>